<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">        
        <ui:define name="title">
            <h:outputText value="Olvido su contraseña?"></h:outputText>
        </ui:define>
        <ui:define name="body">                                   
                           

                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>

                <p:panel header="Olvido su contraseña?">
                    <h:form id="frmCrearSocio"> 
                    <table width="434" border="0" style="font-size: small">
                        <tr>
                            <th align="right" scope="row"><h:outputText value="Correo Electronico: "/></th>
                            <td align="left"><h:inputText id="txtRuc" value="#{emailController.usuario.correo}" title="Correo Electronico" required="true" requiredMessage="Es necesario el campo 'Correo Electronico'" style="text-transform: uppercase" size="30"/></td>
                        </tr>                        
                        <tr>                                
                            <th align="center" colspan="2" scope="row"><h:commandButton action="#{emailController.enviarEmailContrasena()}" value="Enviar Email"/></th>
                        </tr>                                       
                    </table>   
                    <div align="right">                        
                        <p:button outcome="Index" value="#{chofer.RegresarIndex}"/>
                    </div>   
                         </h:form>
                </p:panel>                             
           
        </ui:define>
    </ui:composition>    
</html>

